﻿var intervalId = null;

function SelectMenu(menuId) {
    $('.menu ul li').each(function(i)
    {
        $(this).removeAttr('class');
    });

    $("#" + menuId).attr('class','selected');
}

function generate(type) {
    var n = noty({
        text: type,
        type: type,
        dismissQueue: true,
        layout: 'topCenter',
        theme: 'defaultTheme'
    });
    console.log('html: ' + n.options.id);
}

function generateAll() {
    generate('alert');
    generate('information');
    generate('error');
    generate('warning');
    generate('notification');
    generate('success');
}

function AnimateText() {
    if (intervalId)
        window.clearInterval(intervalId);
    intervalId = window.setInterval(function () {
        $("#animate").toggleClass('animationtwo');
    }, 1000);
}